/*
 
 File: AM_IO.h
 
 Abstract: Helper functions for performing amplitude modulation.
 
 Portions of this file taken from Apple demo code.
 
 Author: Jasper Speicher, Tellart LLC 2008
 
 */

#include <libkern/OSAtomic.h>
#include <AudioToolbox/AudioToolbox.h>
#import "audio_helper.h"


@interface AM_IO : NSObject {
	AudioUnit					rioUnit;
	CAStreamBasicDescription	thruFormat;
	Float64						hwSampleRate;
	AURenderCallbackStruct		inputProc;    
    UInt8   		            peakAmp;    
}
@property AudioUnit					  rioUnit;
@property UInt8                       peakAmp;
@property AURenderCallbackStruct	  inputProc;

-(void)initAudio;

@end

